import requests
session = requests.Session()
session.trust_env = False
#本地服务器
# re = session.post(url='http://192.168.7.232:9400/pycorrector',json={'text':"发消息给银康路。"})
# sentence_ = re.json()
# print(sentence_)
#正式五
# re = session.post(url='http://114.55.209.241:9500/pycorrector',json={'text':"给葛迎建一个日程","dicNames":['persons'],"appId":"sgompqz8"})
#正式6
re = session.post(url='http://114.55.209.164:9500/pycorrector',json={'text':"帮我给葛迎建一个日程","dicNames":['persons'],"appId":"sgompqz8"})
#测试环境
# re = session.post(url='http://47.111.24.154:9500/pycorrector',json={'text':"帮我给葛莹建一个日程","dicNames":['persons'],"appId":"k55frqcd"})
# re = session.post(url='http://47.111.24.154:9500/pycorrector',json={'text':"发消息给银康路。","dicNames":['persons'],"appId":"k55frqcd"})
# sentence_ = re.json()
# print(sentence_)
# re = session.post(url='http://47.111.24.154:9500/pycorrector',json={'text':"看一下今天的会议视","dicNames":['persons'],"appId":"k55frqcd"})
# sentence_ = re.json()
# print(sentence_)
# re = session.post(url='http://47.111.24.154:9500/pycorrector',json={'text':"查找微博","dicNames":['persons'],"appId":"k55frqcd"})
sentence_ = re.json()
print(sentence_)

# re = session.post(url='http://47.96.228.29:9000/NlpServerIntent',json={'text':"小雨的功能介绍。","dicNames":['persons'],"appId":"k55frqcd"})
# re=session.post(url='http://47.96.228.29:9000/NlpServerIntent',json={'query':'技术值班电话？','appId':'k55frqcd','type':'search'})

# re=session.get(url='http://172.16.159.179:9999/v2/search/people?appId={}&query={}'.format("k55frqcd","年会信息"))
# print(re.json())

